<!-- test/index -->

<template lang="">
    <Test :info="info1"></Test>
    <Test :info="info2"></Test>
    <button @click="click1">click</button>
</template>
<script setup>
import { ref } from 'vue'
import Test from '../../components/test.vue';

const info1 = ref(1)
const info2 = ref(2)

const click1 = () => {
    info1.value++
    info2.value++
}

</script>
<style lang="">
    
</style>